import Layout from '@/views/layout/Layout'
const dicRouter = {
    path: '/dic',
    component: Layout,
    alwaysShow:true,
    meta: {
        title: '字典管理',
        icon: 'dic',
        perm:'dic'
    },
    children: [
        {
            path: 'sys/constant',
            component: () => import('@/views/pages/dic/sys/ConstantList'),
            name: 'SysConstant',
            meta: {
                title: '贷款保险',
                icon:'drag',
                noCache: true,
                perm:'dic:constant'
            }
        },
        {
            path: 'sys/constant/edit',
            component: () => import('@/views/pages/dic/sys/ConstantEditor'),
            name: 'ConstantEditor',
            hidden:true,
            meta: {
                title: '编辑常量',
                noCache: true
            }
        },
        {
            path: 'truck/brand',
            component: () => import('@/views/pages/dic/truck/TruckBrandList'),
            name: 'TruckBrandEditor',
            meta: {
                title: '汽车品牌维护',
                icon:'brand',
                noCache: true,
                perm:'dic:brand'
            }
        },
        {
            path: 'truck/engine/list',
            component: () => import('@/views/pages/dic/truck/TruckEngineList'),
            name: 'TruckEngineList',
            meta: {
                title: '发动机维护',
                icon:'engine',
                noCache: true,
                perm:'dic:engine'
            }
        },
        {
            path: 'truck/engine/edit',
            component: () => import('@/views/pages/dic/truck/TruckEngineEditor'),
            name: 'TruckEngineEditor',
            hidden:true,
            meta: {
                title: 'truckEngineEditor',
                icon:'role',
                noCache: true
            }
        },
        {
            path: 'truck/type/list',
            component: () => import('@/views/pages/dic/truck/TruckTypeList'),
            name: '卡车类型维护',
            meta: {
                title: '卡车类型维护',
                icon:'truck',
                noCache: true,
                perm:'dic:truck:type'
            }
        },
        {
            path: 'truck/type/edit',
            component: () => import('@/views/pages/dic/truck/TruckTypeEditor'),
            name: 'TruckTypeEditor',
            hidden:true,
            meta: {
                title: '新增卡车类型',
                icon:'truck',
                noCache: true
            }
        }
    ]
}
export default dicRouter
